Skip to content

Commit

Permalink
update the setup for the test
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijeetSaroha committed Dec 5, 2023
1 parent d0a59e5 commit ef68f60
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 32 deletions.
7 changes: 4 additions & 3 deletions .makim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,13 @@ groups:
export VERBOSE_FLAG='{{ "--verbose" if args.verbose_mode else "" }}'
makim --makim-file $MAKIM_FILE --help
makim --makim-file $MAKIM_FILE --version
makim --makim-file $MAKIM_FILE group-no-path.target-no-path $VERBOSE_FLAG
makim --makim-file $MAKIM_FILE group-no-path.target-absolute $VERBOSE_FLAG
makim --makim-file $MAKIM_FILE group-no-path.target-relative $VERBOSE_FLAG
makim --makim-file $MAKIM_FILE group-relative.target-no-path $VERBOSE_FLAG
makim --makim-file $MAKIM_FILE group-relative.target-absolute $VERBOSE_FLAG
makim --makim-file $MAKIM_FILE group-relative.target-relative $VERBOSE_FLAG
makim --makim-file $MAKIM_FILE group-absolute.target-no-path $VERBOSE_FLAG
makim --makim-file $MAKIM_FILE group-absolute.target-absolute $VERBOSE_FLAG
makim --makim-file $MAKIM_FILE group-absolute.target-relative $VERBOSE_FLAG
makim --makim-file $MAKIM_FILE group-no-path.target-no-path $VERBOSE_FLAG
makim --makim-file $MAKIM_FILE group-no-path.target-absolute $VERBOSE_FLAG
makim --makim-file $MAKIM_FILE group-no-path.target-relative $VERBOSE_FLAG
63 changes: 34 additions & 29 deletions tests/.makim-working-directory-absolute.yaml
Original file line number Diff line number Diff line change
@@ -1,80 +1,85 @@
version: 1.0
working-directory: "/tmp/tests"
working-directory: "/tmp"

groups:
group-relative:
working-directory: "group1"
group-no-path:
targets:
target-no-path:
help: Test global absolute path, group relative path, target no path
help: Test global absolute path, group no path, target no path
run: |
mkdir -p /tmp/group1
mkdir -p /tmp/group1/target3
mkdir -p /tmp/group2
mkdir -p /tmp/group2/target-relative
mkdir -p /tmp/group1/target4
import os
assert os.getcwd() == "/tmp/tests/group1"
assert os.getcwd() == "/tmp"
echo "working-directory-absolute-path [I] Done!"
target-absolute:
working-directory: "/tmp"
help: Test global absolute path, group relative path, target absolute path
help: Test global absolute path, group no path, target absolute path
run: |
import os
assert os.getcwd() == "/tmp"
echo "working-directory-absolute-path [II] Done!"
target-relative:
working-directory: "target3"
help: Test global absolute path, group relative path, target relative path
working-directory: "group1/target4"
help: est global absolute path, group no path, target relative path
run: |
import os
assert os.getcwd() == "/tmp/tests/group1/target3"
assert os.getcwd() == "/tmp/group1/target4"
echo "working-directory-absolute-path [III] Done!"
group-absolute:
working-directory: "/tmp/tests/group2"
group-relative:
working-directory: "group1"
targets:
target-no-path:
help: Test global absolute path, group absolute path, target no path
help: Test global absolute path, group relative path, target no path
run: |
import os
assert os.getcwd() == "/tmp/tests/group2"
import os
assert os.getcwd() == "/tmp/group1"
echo "working-directory-absolute-path [IV] Done!"
target-absolute:
working-directory: "/tmp/tests"
help: Test global absolute path, group absolute path, target absolute path
working-directory: "/tmp"
help: Test global absolute path, group relative path, target absolute path
run: |
import os
assert os.getcwd() == "/tmp/tests"
assert os.getcwd() == "/tmp"
echo "working-directory-absolute-path [V] Done!"
target-relative:
working-directory: "target-relative"
help: Test global absolute path, group absolute path, target relative path
working-directory: "target3"
help: Test global absolute path, group relative path, target relative path
run: |
import os
assert os.getcwd() == "/tmp/tests/group2/target-relative"
assert os.getcwd() == "/tmp/group1/target3"
echo "working-directory-absolute-path [VI] Done!"
group-no-path:
group-absolute:
working-directory: "/tmp/group2"
targets:
target-no-path:
help: Test global absolute path, group no path, target no path
help: Test global absolute path, group absolute path, target no path
run: |
import os
assert os.getcwd() == "/tmp/tests"
import os
assert os.getcwd() == "/tmp/group2"
echo "working-directory-absolute-path [VII] Done!"
target-absolute:
working-directory: "/tmp"
help: Test global absolute path, group no path, target absolute path
help: Test global absolute path, group absolute path, target absolute path
run: |
import os
assert os.getcwd() == "/tmp"
echo "working-directory-absolute-path [VIII] Done!"
target-relative:
working-directory: "group1/target4"
help: est global absolute path, group no path, target relative path
working-directory: "target-relative"
help: Test global absolute path, group absolute path, target relative path
run: |
import os
assert os.getcwd() == "/tmp/tests/group1/target4"
assert os.getcwd() == "/tmp/group2/target-relative"
echo "working-directory-absolute-path [IX] Done!"

0 comments on commit ef68f60

Please sign in to comment.