期刊文献+

一种C程序在线测试方法的研究与实现

Research and Implementation of Online Testing Method for C Programs
下载PDF
导出
摘要 为了培养学习者的程序设计能力,以C程序为测试对象,设计并实现了一种程序在线测试方法。该方法基于开源GCC(GNU Compiler Collection)程序编译器,通过更改进程管道将程序运行结果与测试用例进行比较验证其正确性。对测试程序采用悬停操作提高服务器的CPU并发使用率。运用调试方式加栽程序的途径获取程序运行时间.利用VC工具编写了在线测试的后台实验程序。特别是可执行文件PE代码节的MD5值提取技术解决了源码相似性检测的问题,并实现了文件操作程序的测试。实验结果表明了该方法的有效性和实用性。 In order to train programmaing ability of learner, an online testing method was designed and implemented for testing on C programs. Based on the open source GCC program compiler, the method compared program mn result with test case to prove its correctness b'y rejiggering process pipeline, and adopted hovering operation to improve concurrent use rate of CPU in server. The acquisition of program running time was finished by loading program under debug mode, and the background experiment procedure to online testing was programed with VC. Specially, the MD5 extraction technology of code section based on PE structure solved the problem of approximately detecting of source code, and file operation program testing was also realized. The experiment shows the availabileyd usability of the method.
作者 赵家宇 吴含 彭瑞 ZHAO Jia-yu, WU Han, PENG Rui (1.School of Mechanical Engineering, Shenyang University of Chemical Technology, Shenyang 110142, China; 2.School of Computer Science and Technology, Shenyang University of Chemical Technology, Shenyang 110142, China)
出处 《电脑知识与技术》 2010年第10期8057-8059,共3页 Computer Knowledge and Technology
基金 沈阳化工大学大学生科技创新项目
关键词 C程序 在线测试 源码相似性检测 文件操作程序 C program online testing approximately detecting of source code file operation program
  • 相关文献

参考文献8

二级参考文献41

  • 1毛澄映,卢炎生.分支测试中测试路径用例的简化生成方法[J].计算机研究与发展,2006,43(2):321-328. 被引量:17
  • 2毛澄映,卢炎生.C++程序中异常处理的分析与测试技术研究[J].小型微型计算机系统,2006,27(3):481-485. 被引量:5
  • 3谢晓东,卢炎生.Class Tester:一个基于状态转换的类测试工具的设计与实现[J].小型微型计算机系统,2007,28(3):447-450. 被引量:1
  • 4Yamamoto T,Matsushita M,Kamiya T,et al.Measuring Similarity of Large Software Systems Based on Source Code Correspondence[M].Draft,Division of Software Science,Graduate School of Engineering Science,Osaka University,2002:4-5.
  • 5Halstead M H.Elements of software science[M].New York:North Holland,1977.
  • 6Ottenstein,Karl J.An Algorithmic Approach to the Detection and Prevention of Plagiarism[J].ACM SIGCSE Bulletin,1976,8(4):30-41.
  • 7Berghel H L,Sallach D L.Measurements of Program Similarity in Identical Task Environments[J].SIGPLAN Notices,1984,19(8):65-75.
  • 8GRIER,SAM.A Tool that Detects Plagiarism in Pascal Programs[C] // Twelfth SIGCSE Technical Symposium,St Louis,Missouri,1981:15-20.
  • 9Rinewalt J D,Elizandro D W,Varnell R C,et al.Development and Validation of a Plagiarism Detection Model for the Large Classroom Environment[J].Computers in Education(CoED),1986,6 (3):9-13.
  • 10Faidhi J A W,Robinson S K.An Empirical Approach for Detecting Program Similarity and Plagiarism within a University Programming Environment[J].Computers and Education,1987,11 (1):11-19.

共引文献22

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部