Programming :: Test Program Without Making A Copy Outside The Git Working Dir?
Jan 30, 2010
I was windering, if you are writing a C program, I don't think you are supposed to commit the .o files and executables. How can you test your program without making a copy outside the git working dir?
View 3 Replies
ADVERTISEMENT
Jul 28, 2010
Few months back I learnt a *few* concepts about bits/bytes and started writing a program for bit packing in C++. Now that program has grown upto 600 lines and I am still working on it. Yesterday I realized I missed some special cases due to which the program was malfunctioning. Now I have modified the program and it is working properly but I think If I would have designed all the possible test cases before writing the code, I would have finished the program long ago.
I. What is proper way to design the test cases before coding?
II. How should I make sure that I do not miss any cases while making the test case doc. ?
III. Does writing test cases prior to coding solve messy code issues or should I consider something else ?
View 8 Replies
View Related
Mar 9, 2010
I wrote a test program to get the CPU utilisation. I hope to extend it to take cpu utilisation on multi core machines. Hear I used the equation for taking cpu utilisation given at [url] of JmSchanck post. But when I match the output of my program against 'top' and 'system monitor' output it seems quite high. Sometimes cpu utilisation goes more than 100%.
So the given equation in that url is correct? can anyone give me the equation to take CPU utilisation?
Code:
View 3 Replies
View Related
Jun 6, 2010
Basically, it is a Bluetooth scanner that is designed to do just one thing, scan for discoverable devices in range and record their MAC, name, and the time/date they were found to a log file. There are only a few options, it is pretty much a set it and forget it sort of thing. The only requirements are BlueZ (3.x or 4.x), and that your computer has a Bluetooth device that is supported by Linux.
Obviously you will also need at least one device to scan for, and the more the better. If you want to take a walk through your mall while running it and seeing what you found, I would be ecstatic. A word of warning, I am not a very good C programmer and I have no doubt that there are mistakes in the code and improvements that could be made. You can download the source and get a little more specific information about it from: [URL].
View 10 Replies
View Related
Apr 13, 2011
I started to run a C++ my program in Linux and I don't know how to test my program that works fine with a text file. This is a project for my uni and to explain more clear, My program is a sample database for modify or add and search and it read data from a binary file and also write into a binary file. I have got an input from my lecture and she said after compiling in Linux I must write:
1-to compile:
Code:
g++ (files with cpp)
2-to see the output:
Code:
./a.out
3-to test with input:
Code:
./a.out < input.txt >
My problem is in step three. What I must write in the command part after" step2" to see the output?
View 3 Replies
View Related
Sep 22, 2010
I'm trying to test whether wget is working still or not. While [ wget is still running ] <----- but how should this look please?
do
codes
done
View 4 Replies
View Related
Oct 14, 2010
I've got an error with compiling a program: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/lib/python2.5/config/libpython2.5.a: could not read symbols: Bad value collect2: ld a retourn 1 code dtat d'excution make[2]: *** [bindings/_yafqt.so] Erreur 1.
View 1 Replies
View Related
Jul 28, 2010
I want to simulate a serial protocol in user space program to test reception algorithm. The protocol is similar to UART protocol but frame format is different. The duration of 1 bit is 114,46 us. In my main function I'm creating two threads. Tx for simulating transmitting data and Rx for reception data. For measure time I use create_timer() function and signals. Each thread has its own timer and signal handler. Tx timer uses SIGUSR1 and Rx timer uses SIGUSR2. Tx thread sets the global variable and Rx reads it.
The timers are set to sample with 114,46 us period. When they reach this value signal handler should set the flag. Flag is check in thread and some operation are made. When I set the timers period for longer time (100 ms) everything works fine but when I change it to default value (114,46 us) the Rx thread doesn't receive the proper data. I am wondering if the 114,46 timer period is possible to simulate in user space? Whether the time will give me the proper resolution ? Theoretically it should provide 1 ns resolution.
View 3 Replies
View Related
Oct 7, 2010
i'm a college student studying pc programing, and i was given today a special work and i have to program using miranda... which i've never used it >.< can anyone give me a hand to where to download, how to compile, and a simple tutorial for making a simple program or something?
View 3 Replies
View Related
Jun 23, 2011
i am running ubuntu 10.04. I am looking for a converting program and I also need a DVD making program. I'm unsure if one comes preinstalled already.
View 4 Replies
View Related
Jan 8, 2010
I'm pretty new subversion, and have a basic question which I haven't found the answer to:Say that I on machine A modify the working copy of my code, create a tag "release-1.0", and commit it, how can I on machine B point the working copy to the tagged code? For example, say my "code" is actually config files for Apache, and I wan't apache running on machine B to update it's config files based on the files found in tag "release-1.0", how is this done?
I'm sure the solution is very easy, but I just can wrap my head around it.
View 2 Replies
View Related
Dec 14, 2009
Is there anything like burning rom from nero or roxio cd/dvd copier. Do you know of any dvd copying program? like without making the image and then burning with just one process just copy the disc sorta program like roxio dvd copier? I wanted to make copies of movies I made a dvd of but aside from image burn which is a hassle to make the image first. is there something for burning on the fly or dvd/cd copying? infrarecorder and cdburnerxp do not work for me at all.
View 3 Replies
View Related
Feb 8, 2011
I opened a text file and read some stuff. Then I (think) I closed it. Then I tried to open another one and it stopped working. It seemed to compile fine though. Why would this be?
Code:
#include <iostream>// Libraries included
#include <string>
#include <fstream>
#include <sstream>
#include <list>
[Code]....
View 3 Replies
View Related
Feb 27, 2010
Ubuntu 9.10 64bit I can't find netinstall image but find minimal CD. Please advise how can I copy it to USB stick to make it boot?
View 3 Replies
View Related
Jun 5, 2011
make a simple script to copy files from my "hfiles " directory to a "www" folder at leats I think its a directory, it has the permissions as "lrwxrwxrwx " but its like a public branch So I proceeded to make a file entittled MkPublic to copy the "hfiles" directory to the "www" branch
here is the code i used:
#!/bin/sh
# COPIES FILES
echo "copying files"
[code]....
when i try to run the script it tells me that there is a syntax error and an unexpected end of file and nothing seems to get copied anywhere so clearly there is something wrong with one im doing, i tried multiple ways : using the quotes, spacing the equal signs, but I seem to still get the same results.
View 8 Replies
View Related
Jul 14, 2010
Trying to make a copy of my website to a local ubuntu server - I have very limited access ie: no shell access. What is the best way to make a copy of my site. have ftp cli, lftp, wget ... just not sure what to use and how.
View 3 Replies
View Related
Mar 2, 2010
I'm in doubt whether my dvd burner is working properly. Do you know of a free of charge program to test it fully?
View 2 Replies
View Related
Jun 15, 2011
How to remove the auto tab ? After i wrote ( { )In the terminal there is auto tab .. this looks handy at first but :When i copy paste from universal clipboard it keeps tabbing making the scripts very long .. Is there a setting how to remove it
View 1 Replies
View Related
Dec 3, 2010
I am running ubuntu-9 on i686 and cross compiled simple hello.c program with arm-linux-gcc (handheld/arm-linux-gcc-3.3.2.tar.bz2]) for arm , but unable to run it on openmoko neo free runner phone.
View 1 Replies
View Related
Apr 9, 2010
Have Ubuntu & it was working well, but has become slow, 'greys out' on me regularly - eg. pic loses colour & nothing will respond for a few or more seconds. Also 'Ubuntu Software Centre' & "Synaptic' thingy come up with errors, saying can't install or uninstall progs. Although it seems they may do it OK despite saying they can't. Have Computer Janitor installed, but this is no longer working at all. So... is there a program or such that I can use to test/clean out the system?? For that matter, is there a program for testing hardware, as I'm not sure if it's an indication of unhealthy hard drive or such?
View 1 Replies
View Related
Aug 3, 2011
I want to make a program for my website but I don't know how to make work.
View 1 Replies
View Related
Sep 27, 2010
how do i know the dependencies of the program upon downloading the source code of this application?
View 3 Replies
View Related
May 14, 2010
I'm looking for a Linux program that will do some simple network performance/stress testing.
View 3 Replies
View Related
Feb 2, 2010
I cannot figure how to make a program start-up when Ubuntu boots. I want the "sudo firestarter" command to run so the firestarter icon appears in the panel.
View 7 Replies
View Related
Dec 17, 2010
I'm trying to compile and link a program to test parapin.
Code:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "parapin.h"
int main(int argc, char *argv[])
{ ...
[Code]....
It looks like the library is found (no error anyway) but the functions in it are not seen. Text at the beginning of libparapin.a includes function names as used in the test program, and parapin.h declares them.
View 2 Replies
View Related
Feb 26, 2011
I have Windows XP as an ISO file on a USB stick and want to make it bootable.Which Linux software do you recommend for doing that?
View 4 Replies
View Related
Nov 2, 2010
- Newly installed Fedora 14- Firefox 3.6.12- All latest Fedora updates installed- Denial occured after the installation of jre1.6.0_22 from here - Linux (self-extracting file) and creating symbolic links as follows;
Code:
[root@Freedom opt]# ln -s /opt/jre1.6.0_22/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/
Code:
[code]....
View 3 Replies
View Related
Oct 6, 2010
The error is: error while loading shared libraries: libncurses.so.5: cannot open shared object file: Error 24 This occurs after a good time of running, after I added some file stuff to my code. I can't see why this is happening.
Code: Code:
// Get CPU Temperature
char sensorsRaw[128];
system("sensors >& .sensors");
std::ifstream fileIn;
fileIn.open(".sensors");
[Code]...
View 3 Replies
View Related
Feb 15, 2011
I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html
My code to get url's radio country.htm is:
Code:
View 2 Replies
View Related
Mar 22, 2010
IM using Ubuntu 9.10 running from USB,
My current text.cfg --->
default live
label live
menu label ^Run Ubuntu from this USB
[code]....
i tried to add these lines in the test.cfg , but its not working. i do hav these folders and files with in the disk,
View 1 Replies
View Related