Skip to content

Commit

Permalink
Swapping shell to JUnit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jvcoutinho committed Aug 23, 2019
1 parent 153efc8 commit ecd920c
Show file tree
Hide file tree
Showing 44 changed files with 290 additions and 7,806 deletions.
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,24 @@ before_install:
- source ~/.install-jdk-travis.sh

- ./gradlew clean build -x test --console=plain
- cp build/libs/jFSTMerge-all.jar testfiles/shelltests/config/jFSTMerge.jar

- cp build/libs/jFSTMerge-all.jar ${HOME}/s3m.jar
- bash testfiles/shelltests/config/gitconfiguration.sh

- git config --global user.email "[email protected]"
- git config --global user.name "Guilherme Cavalcanti"

script:
- ./gradlew test --console=plain
- cd testfiles/shelltests/
- bash s3mGitIntegrationTests.sh
- cd testfiles/shelltests
- |
if [ "${TRAVIS_OS_NAME}" == "windows" ]; then
javac -cp .;dependencies/* s3mGitIntegrationTests.java;
java -cp .;dependencies/* org.junit.runner.JUnitCore s3mGitIntegrationTests;
else
javac -cp .:dependencies/* s3mGitIntegrationTests.java;
java -cp .:dependencies/* org.junit.runner.JUnitCore s3mGitIntegrationTests;
fi
before_cache:
- curl "${GRAVIS}.clean_gradle_cache.sh" --output ~/.clean_gradle_cache.sh
Expand Down
2 changes: 1 addition & 1 deletion testfiles/shelltests/config/.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
attributesfile = ~/.gitattributes
[merge "s3m"]
name = assert_conflict_states
driver = java -jar $HOME/jFSTMerge.jar -f %A %O %B -o %A -g
driver = java -jar $HOME/s3m.jar -f %A %O %B -o %A -g

1 change: 0 additions & 1 deletion testfiles/shelltests/config/gitconfiguration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ cd $parent_path

cp .gitconfig $HOME
cp .gitattributes $HOME
cp jFSTMerge.jar $HOME
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added testfiles/shelltests/dependencies/junit-4.12.jar
Binary file not shown.
214 changes: 0 additions & 214 deletions testfiles/shelltests/dependencies/shunit2-2.1.6/doc/CHANGES-2.1.txt

This file was deleted.

Loading

0 comments on commit ecd920c

Please sign in to comment.