Loading test/test-files.py +18 −0 Changes for test/test-files.py: 18 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -120,3 +120,21 @@ if __name__ == "__main__": comment_line(filename, "bibliographystyle{sustechthesis-numeric}", True) comment_line(filename, "{biblatex}", False) comment_line(filename, "addbibresource{ref/refs.bib}", False) elif args.recipe == 4: # progress filename = "sustech-setup.tex" backup(filename, TOBACKUP) if not args.undo: change_line(filename, "type = \S+,", "type = progress," ) elif args.recipe == 5: # proposal filename = "sustech-setup.tex" backup(filename, TOBACKUP) if not args.undo: change_line(filename, "type = \S+,", "type = proposal," ) No newline at end of file test/test.sh +11 −0 Changes for test/test.sh: 11 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -22,3 +22,14 @@ python3 "$RT_DIR/test/test-files.py" --recipe 3 make cp "$RT_DIR/sustechthesis-example.pdf" "$RT_DIR/public-test/sustechthesis-example-biber.pdf" python3 "$RT_DIR/test/test-files.py" --recipe 3 --undo # 生成报告预览 python3 "$RT_DIR/test/test-files.py" --recipe 4 make report cp "$RT_DIR/sustechthesis-report-example.pdf" "$RT_DIR/public-test/sustechthesis-report-example-progress.pdf" python3 "$RT_DIR/test/test-files.py" --recipe 4 --undo python3 "$RT_DIR/test/test-files.py" --recipe 5 make report cp "$RT_DIR/sustechthesis-report-example.pdf" "$RT_DIR/public-test/sustechthesis-report-example-proposal.pdf" python3 "$RT_DIR/test/test-files.py" --recipe 5 --undo No newline at end of file Loading
test/test-files.py +18 −0 Changes for test/test-files.py: 18 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -120,3 +120,21 @@ if __name__ == "__main__": comment_line(filename, "bibliographystyle{sustechthesis-numeric}", True) comment_line(filename, "{biblatex}", False) comment_line(filename, "addbibresource{ref/refs.bib}", False) elif args.recipe == 4: # progress filename = "sustech-setup.tex" backup(filename, TOBACKUP) if not args.undo: change_line(filename, "type = \S+,", "type = progress," ) elif args.recipe == 5: # proposal filename = "sustech-setup.tex" backup(filename, TOBACKUP) if not args.undo: change_line(filename, "type = \S+,", "type = proposal," ) No newline at end of file
test/test.sh +11 −0 Changes for test/test.sh: 11 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -22,3 +22,14 @@ python3 "$RT_DIR/test/test-files.py" --recipe 3 make cp "$RT_DIR/sustechthesis-example.pdf" "$RT_DIR/public-test/sustechthesis-example-biber.pdf" python3 "$RT_DIR/test/test-files.py" --recipe 3 --undo # 生成报告预览 python3 "$RT_DIR/test/test-files.py" --recipe 4 make report cp "$RT_DIR/sustechthesis-report-example.pdf" "$RT_DIR/public-test/sustechthesis-report-example-progress.pdf" python3 "$RT_DIR/test/test-files.py" --recipe 4 --undo python3 "$RT_DIR/test/test-files.py" --recipe 5 make report cp "$RT_DIR/sustechthesis-report-example.pdf" "$RT_DIR/public-test/sustechthesis-report-example-proposal.pdf" python3 "$RT_DIR/test/test-files.py" --recipe 5 --undo No newline at end of file