Want to use get_java script as a benchmark

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
puppy_apprentice
Posts: 299
Joined: Tue 07 Feb 2012, 20:32

Want to use get_java script as a benchmark

#1 Post by puppy_apprentice »

Want to use get_java script as a benchmark to test all my computers.

I've added those lines in red to the get_java script:
function java_make_sfs() { # Make the new sfs file
ts=$(date +%s%N)
...
echo $((($(date +%s%N) - $ts)/1000000)) > /root/java_sfs_finish.txt
return $RTNCD
}
But java_sfs_finish.txt don't exist in /root.

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#2 Post by Keef »

Does get_java actually work for you? When I tried it the URLs seem out of date, so the script never completes.

Code: Select all

ERR    (397) err:=1, wget failed to get package information :: [get_java_version_and_download_url] [/usr/sbin/get_java]
Running the function on its own works ok

User avatar
puppy_apprentice
Posts: 299
Joined: Tue 07 Feb 2012, 20:32

#3 Post by puppy_apprentice »


User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#4 Post by Keef »

Duh, I forgot about using a downloaded package.

Anyway, I moved the line further up (to 611) as I think it is exiting the function early if certain conditions are met.

Code: Select all

sync
     rm -fr $EXPAND_BASE_DIR
     move_tmp_package_to_destination
     echo $((($(date +%s%N) - $ts)/1000000)) > /root/java_sfs_finish.txt 
     FDBK10="$(eval_gettext "Oracle \$JAVA_PACKAGE_NAME built as squash file package.")"
It works now and I get the file written to /root/.

Post Reply