You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/regression/gufi_vt.expected
+110Lines changed: 110 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -615,6 +615,116 @@ prefix/empty_directory
615
615
prefix/leaf_directory
616
616
prefix/unusual#? directory ,
617
617
618
+
# dir_match_uid/gid without values
619
+
$ (
620
+
echo ".load gufi_vt"
621
+
echo "CREATE VIRTUAL TABLE gufi USING gufi_vt("prefix", dir_match_uid=, dir_match_gid=, E="SELECT rpath(sname, sroll, name) AS fullpath, level() AS level FROM vrpentries;", verbose=1);SELECT level, fullpath FROM gufi ORDER BY level ASC, fullpath ASC;"
622
+
) | sqlite3
623
+
Each line is one argv[i]:
624
+
gufi_query \
625
+
--print-tlv \
626
+
-x \
627
+
--threads \
628
+
1 \
629
+
--dir-match-uid \
630
+
--dir-match-gid \
631
+
-E \
632
+
SELECT rpath(sname, sroll, name) AS fullpath, level() AS level FROM vrpentries; \
633
+
prefix
634
+
0|prefix/.hidden
635
+
0|prefix/1KB
636
+
0|prefix/1MB
637
+
0|prefix/file_symlink
638
+
0|prefix/old_file
639
+
0|prefix/repeat_name
640
+
1|prefix/directory/executable
641
+
1|prefix/directory/readonly
642
+
1|prefix/directory/writable
643
+
1|prefix/leaf_directory/leaf_file1
644
+
1|prefix/leaf_directory/leaf_file2
645
+
1|prefix/unusual#? directory ,/unusual, name?#
646
+
2|prefix/directory/subdirectory/directory_symlink
647
+
2|prefix/directory/subdirectory/repeat_name
648
+
649
+
# dir_match_uid/gid without values + remote
650
+
$ (
651
+
echo ".load gufi_vt"
652
+
echo "CREATE VIRTUAL TABLE gufi USING gufi_vt("prefix", dir_match_uid=, dir_match_gid=, E="SELECT rpath(sname, sroll, name) AS fullpath, level() AS level FROM vrpentries;", verbose=1, remote_cmd="ssh", remote_arg="remote");SELECT level, fullpath FROM gufi ORDER BY level ASC, fullpath ASC;"
653
+
) | sqlite3
654
+
Each line is one argv[i]:
655
+
ssh \
656
+
remote \
657
+
gufi_query --print-tlv -x --threads 1 --dir-match-uid --dir-match-gid -E "SELECT rpath(sname, sroll, name) AS fullpath, level() AS level FROM vrpentries;" prefix
658
+
0|prefix/.hidden
659
+
0|prefix/1KB
660
+
0|prefix/1MB
661
+
0|prefix/file_symlink
662
+
0|prefix/old_file
663
+
0|prefix/repeat_name
664
+
1|prefix/directory/executable
665
+
1|prefix/directory/readonly
666
+
1|prefix/directory/writable
667
+
1|prefix/leaf_directory/leaf_file1
668
+
1|prefix/leaf_directory/leaf_file2
669
+
1|prefix/unusual#? directory ,/unusual, name?#
670
+
2|prefix/directory/subdirectory/directory_symlink
671
+
2|prefix/directory/subdirectory/repeat_name
672
+
673
+
# dir_match_uid/gid with values
674
+
$ (
675
+
echo ".load gufi_vt"
676
+
echo "CREATE VIRTUAL TABLE gufi USING gufi_vt("prefix", dir_match_uid=euid, dir_match_gid=egid, E="SELECT rpath(sname, sroll, name) AS fullpath, level() AS level FROM vrpentries;", verbose=1);SELECT level, fullpath FROM gufi ORDER BY level ASC, fullpath ASC;"
677
+
) | sqlite3
678
+
Each line is one argv[i]:
679
+
gufi_query \
680
+
--print-tlv \
681
+
-x \
682
+
--threads \
683
+
1 \
684
+
--dir-match-uid=euid \
685
+
--dir-match-gid=egid \
686
+
-E \
687
+
SELECT rpath(sname, sroll, name) AS fullpath, level() AS level FROM vrpentries; \
688
+
prefix
689
+
0|prefix/.hidden
690
+
0|prefix/1KB
691
+
0|prefix/1MB
692
+
0|prefix/file_symlink
693
+
0|prefix/old_file
694
+
0|prefix/repeat_name
695
+
1|prefix/directory/executable
696
+
1|prefix/directory/readonly
697
+
1|prefix/directory/writable
698
+
1|prefix/leaf_directory/leaf_file1
699
+
1|prefix/leaf_directory/leaf_file2
700
+
1|prefix/unusual#? directory ,/unusual, name?#
701
+
2|prefix/directory/subdirectory/directory_symlink
702
+
2|prefix/directory/subdirectory/repeat_name
703
+
704
+
# dir_match_uid/gid with values + remote
705
+
$ (
706
+
echo ".load gufi_vt"
707
+
echo "CREATE VIRTUAL TABLE gufi USING gufi_vt("prefix", dir_match_uid=euid, dir_match_gid=egid, E="SELECT rpath(sname, sroll, name) AS fullpath, level() AS level FROM vrpentries;", verbose=1, remote_cmd="ssh", remote_arg="remote");SELECT level, fullpath FROM gufi ORDER BY level ASC, fullpath ASC;"
708
+
) | sqlite3
709
+
Each line is one argv[i]:
710
+
ssh \
711
+
remote \
712
+
gufi_query --print-tlv -x --threads 1 --dir-match-uid=euid --dir-match-gid=egid -E "SELECT rpath(sname, sroll, name) AS fullpath, level() AS level FROM vrpentries;" prefix
0 commit comments