Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--testing: version and date does not change. Bump to 1.4.4
- Loading branch information
1 parent
f09d617
commit 3d31f32
Showing
5 changed files
with
34 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
function run_test(dir) | ||
os.execute('cd '..dir..' && ldoc --testing . && diff -r doc cdocs') | ||
local run | ||
if not arg[1] then | ||
run = function (dir) | ||
local cmd = 'cd '..dir..' && ldoc --testing . && diff -r doc cdocs' | ||
print(cmd) | ||
os.execute(cmd) | ||
end | ||
elseif arg[1] == 'update' then | ||
run = function (dir) | ||
local cmd = 'cd '..dir..' && ldoc --dir cdocs --testing .' | ||
print(cmd) | ||
os.execute(cmd) | ||
end | ||
end | ||
|
||
for _,d in ipairs{'tests','tests/example','tests/md-test'} do | ||
run(d) | ||
end | ||
run_test('tests') | ||
run_test('tests/example') | ||
run_test('tests/md-test') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters