Skip to content

Commit

Permalink
fixing tests on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
gonsie committed Mar 27, 2023
1 parent a37325b commit 3a3b09c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/test_axl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function run_test
if [ "$(uname)" == "Darwin" ] ; then
TIMEOUT_CMD=gtimeout
else
TIMOUT_CMD=timeout
TIMEOUT_CMD=timeout
fi
$TIMEOUT_CMD --signal=$sig --preserve-status $s ./axl_cp -S /var/tmp/state_file -X $xfer -r $src/* $dest

Expand Down
10 changes: 8 additions & 2 deletions test/test_axl_metadata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ dd if=/dev/zero of=$src/file2 bs=1 count=5

chmod 444 $src/file1
chmod 777 $src/file2
touch -d "1 hour ago" $src/file1
touch -d "1 day ago" $src/file2

if [ "$(uname)" == "Darwin" ] ; then
TOUCH_CMD=gtouch
else
TOUCH_CMD=touch
fi
$TOUCH_CMD -d "1 hour ago" $src/file1
$TOUCH_CMD -d "1 day ago" $src/file2

# Do a simple transfer and verify the result
./axl_cp -a $src/* $dest
Expand Down

0 comments on commit 3a3b09c

Please sign in to comment.