Skip to content

Commit

Permalink
tests: Use a (stable) relative submodule location
Browse files Browse the repository at this point in the history
This ensures that the content (and hence the EVTag) stays identical
even if the testing code generates different temporary directories.
  • Loading branch information
cgwalters committed Jul 14, 2015
1 parent 3ce438a commit c1e05e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/libtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ setup_test_repository () {
git push --set-upstream origin master

cd ${test_tmpdir}/coolproject
git submodule add file://${test_tmpdir}/repos/subproject subproject
git submodule add ../subproject subproject
git add subproject
echo '#include subproject/src/libsub.c' >> src/cool.c
gitcommit_inctime -a -m 'Add libsub'
Expand Down
4 changes: 2 additions & 2 deletions tests/test-basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ cd coolproject
git submodule update --init
with_editor_script git evtag -u 472CDAFA v2015.1
git show refs/tags/v2015.1 > tag.txt
assert_file_has_content tag.txt 'Git-EVTag-EXPERIMENTAL-v0-SHA512: 9a08bd77a94e3623f128a8e688aa39837e9a0d8d20ad1e6fff9954f3266efa64bc4ecbcc3caa196110dd14e37926190d860cbc7e16cec48d7d1d43e70c239690'
assert_file_has_content tag.txt 'Git-EVTag-EXPERIMENTAL-v0-SHA512: 58e9834248c054f844f00148a030876f77eb85daa3caa15a20f3061f181403bae7b7e497fca199d25833b984c60f3202b16ebe0ed3a36e6b82f33618d75c569d'
with_editor_script git evtag --verify v2015.1 | tee verify.out
assert_file_has_content verify.out 'Successfully verified: Git-EVTag-EXPERIMENTAL-v0-SHA512: 9a08bd77a94e3623f128a8e688aa39837e9a0d8d20ad1e6fff9954f3266efa64bc4ecbcc3caa196110dd14e37926190d860cbc7e16cec48d7d1d43e70c239690'
assert_file_has_content verify.out 'Successfully verified: Git-EVTag-EXPERIMENTAL-v0-SHA512: 58e9834248c054f844f00148a030876f77eb85daa3caa15a20f3061f181403bae7b7e497fca199d25833b984c60f3202b16ebe0ed3a36e6b82f33618d75c569d'
rm -f tag.txt
rm -f verify.out
echo "ok tag + verify"
Expand Down

0 comments on commit c1e05e8

Please sign in to comment.