Try Test Filesystem

Project:JNode Core
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi all
I would like to try Filesystem Test inside JNode
I have booted JNode (all plugins)
But from the Node shell i don't see AllFSTest command
---
JNode /> AllFSTest
Shell exception: Cannot resolve command 'AllFSTest'

Is there an alias?

Check the plugin descriptor for the plugin that includes the command. Do you see a line of the form

&ltalias name="AllFSTest" class="org.jnode.some.ClassName">

If you can add the alias permanently by editing the descriptor and rebuilding, temporarily using the "alias" command.

Alternatively, you should be able to run the command using its fully qualified className.

line with alias name="AllFSTest" not found

Can you explain me how can I check the plugin descriptor please?

I have tried in the folder of the code source
[vinicio@vinicio jnode]$ ll
total 55680
drwxr-xr-x 7 vinicio vinicio 4096 2008-04-08 11:15 all
-rw-r--r-- 1 vinicio vinicio 148 2007-07-24 09:04 build.bat
drwxr-xr-x 5 vinicio vinicio 4096 2008-04-08 11:15 builder
-rw-r--r-- 1 vinicio vinicio 153 2007-07-24 09:04 build.sh
drwxr-xr-x 7 vinicio vinicio 4096 2008-04-08 11:15 core
drwxr-xr-x 7 vinicio vinicio 4096 2008-04-08 11:16 distr
drwxr-xr-x 6 vinicio vinicio 4096 2008-04-08 11:16 docs
drwxr-xr-x 6 vinicio vinicio 4096 2008-04-08 11:16 fs
drwxr-xr-x 7 vinicio vinicio 4096 2008-04-08 11:16 gui
-rw-r--r-- 1 vinicio vinicio 1028 2007-12-31 19:44 jnode.iml
-rw-r--r-- 1 vinicio vinicio 18835 2007-12-31 19:44 JNode.ipr
-rw-r--r-- 1 vinicio vinicio 64696 2008-02-21 22:35 JNode.iws
-rw-r--r-- 1 vinicio vinicio 2431 2008-02-17 14:37 jnode.properties
-rw-r--r-- 1 vinicio vinicio 2420 2008-02-17 14:37 jnode.properties.dist
-rw-r--r-- 1 vinicio vinicio 1097 2007-07-24 09:04 jnode.psf
-rw-r--r-- 1 vinicio vinicio 146 2007-07-24 09:04 JNode.sptl
drwxr-xr-x 6 vinicio vinicio 4096 2008-04-08 11:16 net
-rw-r--r-- 1 vinicio vinicio 127 2007-07-24 09:04 qemu.bat
-rw-r--r-- 1 vinicio vinicio 1916 2007-07-24 09:04 README.txt
drwxr-xr-x 7 vinicio vinicio 4096 2008-04-08 11:16 shell
drwxr-xr-x 6 vinicio vinicio 4096 2008-04-08 11:16 textui
-rw-r--r-- 1 vinicio vinicio 83986 2008-02-20 21:01 udpout.log
-rw-r--r-- 1 vinicio vinicio 82 2007-07-24 09:04 udpreceiver.bat
-rw-r--r-- 1 vinicio vinicio 84 2007-07-24 09:04 udpreceiver.sh
[vinicio@localhost jnode]$ grep -R AllFSTest *
./fs/build.xml:
The only file ./fs/build.xml seem have the key word "AllFSTest"

After inside the file ./fs/build.xml i see:
&l ttarget name="tests" depends="compile" description="Run FS tests with JUnit">
&lt junit fork="yes" haltonerror="false" haltonfailure="false" printsummary="on" includeantruntime="true">
&lt classpath refid="cp-jnode" />
&lt formatter type="plain" usefile="false" />
&lt test name="org.jnode.test.fs.AllFSTest" />
...

After I entered the command:
[vinicio@localhost jnode]$ grep -R alias * | grep AllFSTest
The search result is empty
So I don't find any lines like:
&ltalias name="AllFSTest" class="org.jnode.some.ClassName">

Ah ....

(I'm not on my dev't box at the moment ... so searching the tree is a bit hard ...)

The build.xml reference seems to imply that AllFSTest should be a JUnit test suite class that runs in your dev't sandbox. But I cannot see the class at all! (... I might be looking in the wrong place ... see above.) So I suspect that is the problem.

If this was a real command, should be looking for the alias in the plugin descriptors in "*/descriptors/*.xml". For example, the fs command plugin descriptor is in the file "fs/descriptors/org.jnode.fs.command.xml"