File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ before continuing reading this documentation.
29
29
30
30
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
31
31
32
+ # Install
33
+
34
+ Simply download and run install.sh on your computer :
35
+
36
+ bash <(curl -s https://raw.githubusercontent.com/pgrange/bash_unit/master/install.sh)
37
+
32
38
# How to run tests
33
39
34
40
To run tests, simply call bash_unit with all your tests files as parameter. For instance to run bash_unit tests, from bash_unit directory:
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ echo " downloading bash_unit"
4
+ current_working_dir=$PWD
5
+ tarball_url=$( curl -s https://api.github.com/repos/pgrange/bash_unit/releases | grep tarball_url | head -n 1 | cut -d ' "' -f 4)
6
+ tmp_dir=` mktemp -d 2> /dev/null || mktemp -d -t ' tmpdir' `
7
+ cd $tmp_dir
8
+ curl -Ls $tarball_url | tar -xz
9
+ find $tmp_dir -type f -name " bash_unit" | xargs cp -t $current_working_dir
10
+ rm -rf $tmpdir
11
+ echo " thank you for downloading bash_unit, you can now run ./bash_unit"
You can’t perform that action at this time.
0 commit comments