Commit 8bc5c5e3 authored by liziwl's avatar liziwl
Browse files

update test

parent 70f61e90
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -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
+11 −0
Original line number Diff line number Diff line
@@ -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