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
@@ -595,6 +595,116 @@ prefix/empty_directory
595
595
prefix/leaf_directory
596
596
prefix/unusual#? directory ,
597
597
598
+
# dir_match_uid/gid without values
599
+
$ (
600
+
echo ".load gufi_vt"
601
+
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;"
602
+
) | sqlite3
603
+
Each line is one argv[i]:
604
+
gufi_query \
605
+
--print-tlv \
606
+
-x \
607
+
--threads \
608
+
1 \
609
+
--dir-match-uid \
610
+
--dir-match-gid \
611
+
-E \
612
+
SELECT rpath(sname, sroll, name) AS fullpath, level() AS level FROM vrpentries; \
613
+
prefix
614
+
0|prefix/.hidden
615
+
0|prefix/1KB
616
+
0|prefix/1MB
617
+
0|prefix/file_symlink
618
+
0|prefix/old_file
619
+
0|prefix/repeat_name
620
+
1|prefix/directory/executable
621
+
1|prefix/directory/readonly
622
+
1|prefix/directory/writable
623
+
1|prefix/leaf_directory/leaf_file1
624
+
1|prefix/leaf_directory/leaf_file2
625
+
1|prefix/unusual#? directory ,/unusual, name?#
626
+
2|prefix/directory/subdirectory/directory_symlink
627
+
2|prefix/directory/subdirectory/repeat_name
628
+
629
+
# dir_match_uid/gid without values + remote
630
+
$ (
631
+
echo ".load gufi_vt"
632
+
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;"
633
+
) | sqlite3
634
+
Each line is one argv[i]:
635
+
ssh \
636
+
remote \
637
+
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
638
+
0|prefix/.hidden
639
+
0|prefix/1KB
640
+
0|prefix/1MB
641
+
0|prefix/file_symlink
642
+
0|prefix/old_file
643
+
0|prefix/repeat_name
644
+
1|prefix/directory/executable
645
+
1|prefix/directory/readonly
646
+
1|prefix/directory/writable
647
+
1|prefix/leaf_directory/leaf_file1
648
+
1|prefix/leaf_directory/leaf_file2
649
+
1|prefix/unusual#? directory ,/unusual, name?#
650
+
2|prefix/directory/subdirectory/directory_symlink
651
+
2|prefix/directory/subdirectory/repeat_name
652
+
653
+
# dir_match_uid/gid with values
654
+
$ (
655
+
echo ".load gufi_vt"
656
+
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;"
657
+
) | sqlite3
658
+
Each line is one argv[i]:
659
+
gufi_query \
660
+
--print-tlv \
661
+
-x \
662
+
--threads \
663
+
1 \
664
+
--dir-match-uid=euid \
665
+
--dir-match-gid=egid \
666
+
-E \
667
+
SELECT rpath(sname, sroll, name) AS fullpath, level() AS level FROM vrpentries; \
668
+
prefix
669
+
0|prefix/.hidden
670
+
0|prefix/1KB
671
+
0|prefix/1MB
672
+
0|prefix/file_symlink
673
+
0|prefix/old_file
674
+
0|prefix/repeat_name
675
+
1|prefix/directory/executable
676
+
1|prefix/directory/readonly
677
+
1|prefix/directory/writable
678
+
1|prefix/leaf_directory/leaf_file1
679
+
1|prefix/leaf_directory/leaf_file2
680
+
1|prefix/unusual#? directory ,/unusual, name?#
681
+
2|prefix/directory/subdirectory/directory_symlink
682
+
2|prefix/directory/subdirectory/repeat_name
683
+
684
+
# dir_match_uid/gid with values + remote
685
+
$ (
686
+
echo ".load gufi_vt"
687
+
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;"
688
+
) | sqlite3
689
+
Each line is one argv[i]:
690
+
ssh \
691
+
remote \
692
+
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