]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
mlmmj-maintd: add test with relative path as argument
authorBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 26 Oct 2022 09:38:25 +0000 (11:38 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 26 Oct 2022 09:39:21 +0000 (11:39 +0200)
tests/functional-tests.sh

index 8536017026416203d7b0f8dedda9c710043046b9..7d8d4007908b50f2151056f296d79e570597896b 100644 (file)
@@ -23,4 +23,15 @@ EOF
        atf_check touch -m -t 197001010101 list/queue/discarded/*
        atf_check -s exit:0 $mlmmjmaint -F -L ${here}/list
        atf_check -o inline:"list/queue/discarded\n" find list/queue/discarded  -type d -empty
+
+       #now with relative path
+       atf_check -s exit:0 $mlmmjrecv -L list -F <<-EOF
+bla
+EOF
+       atf_check -o inline:"bla\n" cat list/queue/discarded/*
+       atf_check -s exit:0 $mlmmjmaint -F -L list
+       atf_check -o inline:"bla\n" cat list/queue/discarded/*
+       atf_check touch -m -t 197001010101 list/queue/discarded/*
+       atf_check -s exit:0 $mlmmjmaint -F -L list
+       atf_check -o inline:"list/queue/discarded\n" find list/queue/discarded  -type d -empty
 }